/**
 * ...
 * @author Krzysztof Rozalski
 */

package hapi.util.benchmark;
import haxe.Timer;

class Stoper {

	static var stamp:Float;
	
	public static function start():Void {
		stamp = Timer.stamp();
	}
	
	public static function millis():Int {
		return Math.round(seconds() * 1000);
	}
	
	public static function seconds():Float {
		return Timer.stamp() - stamp;
	}
}